﻿<%@ Page Title="Select Data" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="SelectData.aspx.vb" Inherits="WRDBWeb.SelectData" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .tblSelect{
        border:1px solid #999;
        border-collapse:collapse ;
        margin:auto;
        text-align:left;
        }
        .tblSelect td{
        border: 1px  dotted  #999;
        white-space:nowrap;
        padding-right:5px;
        }

        .tblSelect input[type="text"]{
            width:100%;
        }

        .tblSelect input[type="submit"]{
            /*padding: 2px;*/
        }

        #tblData{
        border:1px solid #999;
        border-collapse:collapse;
        font-family:verdana,arial,helvetica,sans-serif;
        font-size: 0.85em ;
        text-wrap:none ;
        white-space: nowrap;
        margin:auto;
        text-align:left;
        }
        #tblData tr{
        text-wrap:none ;
        }
        #tblData td{
        border:1px solid #000;
        margin:0px;
        padding-top:0px;
        padding-left:4px;
        line-height:1;
        }
        #tblData thead{
        border:1px solid #000;
        font-weight:bold ;
        background-color:darkblue ;
        color:white ;
        }

        .radio 
        {
            width:auto;
            color:transparent ;
            background-color:transparent ;
            border:none;
        }

        label
        {
            font-size:1.0em;
            font-weight:normal ;
            display:inline ;
        }

        .auto-style6
        {
            height: 36px;
            width: 10em;
        }

    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
    <section class="featured">
        <div class="content-wrapper">
            <table style="width: 100%">
                <tr>
                    <td>
                        <hgroup class="title">
                            <h1><%: Title %> </h1>
                            <h2>
                                <asp:Label runat="server" ID="lblInfo" Text="Select the data you wish to view from the {0:N0} records in the selected table." meta:resourcekey="lblInfoResource1"></asp:Label></h2>
                        </hgroup>
                    </td>
                    <td>
                        <asp:Image ID="Image1" runat="server" ImageAlign="Right" ImageUrl="~/Images/dialog_32xLG.png" meta:resourcekey="Image1Resource1" />
                    </td>
                </tr>
            </table>
        </div>
     </section>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

    <%-- ====================================================
        this section contains the visible portion of the page
        Note: use asp controls for everything so text can get
        translated when using different resource file; for those
        buttons that only run javascript routines, use 
        OnClientClick and then return false to avoid postback 
        to server
        =====================================================--%>

    <script>
        function showMore() {
            $("[id$='divMore']").slideDown(500);
            $("[id$='btnMore']").hide();
            $("[id$='btnLess']").show();
            $("[id$='hdnMore']").val("True")
        };
        function showLess() {
            $("[id$='divMore']").slideUp(500);
            $("[id$='btnMore']").show();
            $("[id$='btnLess']").hide();
            $("[id$='hdnMore']").val("False")
        };

        //this method requires that the page contain a div called divDialogProgress that looks like this:
        //        <div id="divDialogProgress" title="Please stand by..." style="display:none">
        //          <div id="divProgress"></div>
        //        </div>
        //Will also need the GetResource pagemethod in codebehind
        //It should be called after a button is clicked using OnClientClicked="showProgress(); return true;"

        function showProgress() {
            $("#divProgress").progressbar({
                value: false //indeterminate
            });

            PageMethods.GetResource("ProgressTitle", function (res) {
                $("#divDialogProgress").attr("title", res);
                var dlg = $("#divDialogProgress").dialog({
                    modal: true,
                    width: 300,
                    height: 100,
                    resizable: false,
                    draggable: false,
                    closeOnEscape: false,
                    close: function () { $(this).dialog('destroy').remove() } //the dialogs kept getting added and eventually would not close properly (maybe because placed in panel instead of div); this seems to fix it
                })
            })
        };

    </script>

    <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSelect" meta:resourcekey="Panel1Resource1">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table style="width: 100%">
                    <tr>
                        <td style="white-space: nowrap">
                            <asp:Label runat="server" ID="lblSavedQueries" meta:resourcekey="lblSavedQueriesResource1" Text="Select saved query or enter criteria below:" AccessKey="v"></asp:Label>
                            <asp:DropDownList ID="cboSavedQueries" runat="server" Style="margin-left: 10px; min-width: 20em" meta:resourcekey="cboSavedQueriesResource1" ToolTip="Select from list of previously saved queries." AutoPostBack="True"></asp:DropDownList>
                        </td>
                        <td style="text-align: right">
                            <asp:Button ID="btnSave" runat="server" Text="Save Query" meta:resourcekey="btnSaveResource1" ToolTip="You will be prompted for name of query to be saved; thereafter you will be able to select it from the drop-down list of saved queries." />
                        </td>
                        <td style="width: 1px; white-space: nowrap">
                            <asp:Button ID="btnDelete" runat="server" Text="Delete Query" ToolTip="The currently selected saved query will be deleted." meta:resourcekey="btnDeleteResource1" />
                        </td>
                    </tr>
                </table>
                <hr />

                <asp:Panel ID="pnlSelect" runat="server" DefaultButton="btnSelect">

                    <table id="tblSelect" class="tblSelect">
                        <tr>
                            <td>
                                <asp:Label runat="server" ID="lblStationID" Width="10em" meta:resourcekey="lblStationIDResource1" Text="Station ID:"></asp:Label>
                            </td>
                            <td style="text-align: center; width: 100%">
                                <asp:TextBox ID="txtStationID" runat="server" Wrap="False" meta:resourcekey="txtStationIDResource1" AccessKey="s"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btnSta" runat="server" Text="Assist" Width="7em" meta:resourcekey="btnStaResource1" ToolTip="Display Assist form from which you can select one or more stations or station groups." />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label runat="server" ID="lblDateTime" meta:resourcekey="lblDateTimeResource1" Text="Date-Time:"></asp:Label>
                            </td>
                            <td style="text-align: center">
                                <asp:TextBox ID="txtDateTime" runat="server" Wrap="False" meta:resourcekey="txtDateTimeResource1" AccessKey="d"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btnDateTime" runat="server" Text="Assist" meta:resourcekey="btnDateTimeResource1" ToolTip="Display Assist form from which you can specify dates." Width="7em" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label runat="server" ID="lblPCode" meta:resourcekey="lblPCodeResource1" Text="PCode:"></asp:Label>
                            </td>
                            <td style="text-align: center">
                                <asp:TextBox ID="txtPCode" runat="server" Wrap="False" meta:resourcekey="txtPCodeResource1" AccessKey="p"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btnPCode" runat="server" Text="Assist" meta:resourcekey="btnPCodeResource1" ToolTip="Display Assist form from which you can select one or more PCodes or PCode groups." Width="7em" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label runat="server" ID="lblCCode" meta:resourcekey="lblCCodeResource1" Text="CCode:"></asp:Label>
                            </td>
                            <td style="text-align: center">
                                <asp:TextBox ID="txtCCode" runat="server" Wrap="False" meta:resourcekey="txtCCodeResource1" AccessKey="c"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btnCCode" runat="server" Text="Assist" meta:resourcekey="btnCCodeResource1" ToolTip="Display Assist form from which you can select one or more CCodes." Width="7em" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label runat="server" ID="lblResult" meta:resourcekey="lblResultResource1" Text="Result:"></asp:Label>
                            </td>
                            <td style="text-align: center">
                                <asp:TextBox ID="txtResult" runat="server" Wrap="False" meta:resourcekey="txtResultResource1" AccessKey="r"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btnResult" runat="server" Text="Assist" meta:resourcekey="btnResultResource1" ToolTip="Display Assist form from which you can specify results." Width="7em" />
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                            <td>
                                <asp:Button ID="btnMore" runat="server" Text="More>" ToolTip="Show additional fields that can be used for advanced queries." meta:resourcekey="btnMoreResource1" Width="7em" OnClientClick="showMore(); return false;" AccessKey="M" />
                                <asp:Button ID="btnLess" runat="server" Text="&lt;Less" ToolTip="Hide additional fields that can be used for advanced queries." meta:resourcekey="btnLessResource1" Width="7em" Style="display: none" OnClientClick="showLess(); return false;" AccessKey="l" />
                                <asp:HiddenField ID="hdnMore" runat="server" />
                            </td>
                        </tr>
                    </table>

                    <div id="divMore" runat="server" style="display: none;">
                        <table id="tblMore" class="tblSelect" style="border-top: none">
                            <tr>
                                <td>
                                    <asp:Label runat="server" ID="lblDepth" Width="10em" meta:resourcekey="lblDepthResource1" Text="Depth:"></asp:Label>
                                </td>
                                <td style="text-align: center; width: 100%">
                                    <asp:TextBox ID="txtDepth" runat="server" Wrap="False" meta:resourcekey="txtDepthResource1"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Button ID="btnDepth" runat="server" Text="Assist" ToolTip="Display Assist form from which you can specify depth." meta:resourcekey="btnDepthResource1" Width="7em" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label runat="server" ID="lblRCode" Text="RCode:" meta:resourcekey="lblRCodeResource1"></asp:Label>
                                </td>
                                <td style="text-align: center">
                                    <asp:TextBox ID="txtRCode" runat="server" Wrap="False" meta:resourcekey="txtRCodeResource1"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Button ID="btnRCode" runat="server" Text="Assist" ToolTip="Display Assist form from which you can select one or more RCodes." meta:resourcekey="btnRCodeResource1" Width="7em" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label runat="server" ID="lblLCode" Text="LCode:" meta:resourcekey="lblLCodeResource1"></asp:Label>
                                </td>
                                <td style="text-align: center">
                                    <asp:TextBox ID="txtLCode" runat="server" Wrap="False" meta:resourcekey="txtLCodeResource1"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Button ID="btnLCode" runat="server" Text="Assist" ToolTip="Display Assist form from which you can select one or more LCodes." meta:resourcekey="btnLCodeResource1" Width="7em" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label runat="server" ID="lblSCode" Text="SCode:" meta:resourcekey="lblSCodeResource1"></asp:Label>
                                </td>
                                <td style="text-align: center">
                                    <asp:TextBox ID="txtSCode" runat="server" Wrap="False" meta:resourcekey="txtSCodeResource1"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Button ID="btnSCode" runat="server" Text="Assist" ToolTip="Display Assist form from which you can select one or more SCodes." meta:resourcekey="btnSCodeResource1" Width="7em" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label runat="server" ID="lblQCode" Text="QCode:" meta:resourcekey="lblQCodeResource1"></asp:Label>
                                </td>
                                <td style="text-align: center">
                                    <asp:TextBox ID="txtQCode" runat="server" Wrap="False" meta:resourcekey="txtQCodeResource1"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Button ID="btnQCode" runat="server" Text="Assist" ToolTip="Display Assist form from which you can select one or more QCodes." meta:resourcekey="btnQCodeResource1" Width="7em" />
                                </td>
                            </tr>
                        </table>
                        <p>
                            <asp:Label ID="lblSQLInfo" runat="server" Font-Italic="true" Font-Size="smaller" Text="Note: WRDB automatically tries to format entries in the text boxes as legal SQL statements. Unless you are familiar with SQL, you should avoid editing the text and just use the Assist buttons." meta:resourcekey="lblSQLInfoResource1"></asp:Label>
                        </p>
                    </div>
                </asp:Panel>

                <div>
                    <asp:Label id="lblError" runat="server" Visible="False" Text="<strong>Error!</strong><br />" ForeColor="Red" Font-Size="1em" meta:resourcekey="lblErrorResource1" ></asp:Label>
                    <br />
                    <asp:Button ID="btnClear" runat="server" Text="Clear Selection" UseSubmitBehavior="False"
                        ToolTip="All the selection criteria will be cleared; this is the same as selecting all records in the table." meta:resourcekey="btnClearResource1" />
                    <asp:Button ID="btnSelect" runat="server" Text="Select Records"
                        onClientClick="showProgress(); return true;"
                        meta:resourcekey="btnSelectResource1"
                        ToolTip="After all criteria are entered above, click this button to query the selected table in the project. The resulting number of records will appear to the right." AccessKey="s" />
                    <asp:Label ID="lblSelect" runat="server" meta:resourcekey="lblSelectResource1"></asp:Label>
                </div>
                <div style="display:none">
                    <asp:Button ID="btnView" runat="server" Text="View Data" CssClass="float-right"
                        meta:resourcekey="btnViewResource1"
                        ToolTip="When you are satisfied with your query, click this button to display the selected records in a table." Visible="False" />
                </div>

                <%--all the dialog boxes follow--%>

                <asp:Panel ID="pnlDialogMustSelect" runat="server" style="display:none" DefaultButton="btnOKMustSelect">
                    <p><asp:Label ID="lblMustSelect" runat="server" Text="You must select some records before you can view this type of output." meta:resourcekey="lblMustSelectResource1" ></asp:Label></p>
                    <div style="display:normal; text-align:right; margin-top:25px" >
                        <asp:Button ID="btnOKMustSelect" Text="OK" runat="server" meta:resourcekey="btnOKResource1" />
                    </div>
                    <asp:HiddenField ID="hdnMustSelect" runat="server" value="false" />
                </asp:Panel>

                <%--the following div contains the dialog box used for deleting query--%>
                <asp:Panel ID="pnlDialogSave" DefaultButton="btnOKSave" runat="server" Style="display: none; font-size: 0.85em">
                    <table style="text-align:center; margin:25px">
                        <tr>
                            <td style="padding:10px"><asp:Label id="lblQueryName" runat="server" Text="Name for query:" AssociatedControlID ="txtQueryName" meta:resourcekey="lblQueryNameResource1"></asp:Label></td>
                            <td style="padding:10px"><asp:Textbox id="txtQueryName" runat="server" Width="30em" meta:resourcekey="txtQueryNameResource1"></asp:Textbox></td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align:left; padding:10px"><asp:CheckBox ID="chkQueryName" runat="server" Text="Make this a shared query that can be used by everyone." meta:resourcekey="chkQueryNameResource1" /></td>
                        </tr>
                    </table>
                    <%--these are ASP buttons so can change text from resource file--%>
                    <div style="display:normal; text-align:right; margin-top:10px">
                        <asp:Button ID="btnOKSave" Text="OK" runat="server" meta:resourcekey="btnOKResource1" />
                        <asp:Button ID="btnCancelSave" Text="Cancel" runat="server" meta:resourcekey="btnCancelResource1" />
                    </div>
                </asp:Panel>

                <%--the following div contains the dialog box used for deleting query--%>
                <asp:Panel ID="pnlDialogDelete" DefaultButton="btnOKDelete" runat="server" Style="display: none; font-size: 0.85em">
                    <p>
                        <asp:Label ID="lblDelete" runat="server" Text="Are you really, really sure?" meta:resourcekey="lblDeleteResource1"></asp:Label>
                    </p>
                    <div style="display: normal; text-align: right; margin-top: 25px">
                        <asp:Button ID="btnOKDelete" Text="OK" runat="server" meta:resourcekey="btnOKResource1"  />
                        <asp:Button ID="btnCancelDelete" Text="Cancel" runat="server" meta:resourcekey="btnCancelResource1" />
                    </div>
                </asp:Panel>

                <%--the following div conta ins the dialog box used for selecting from a support table --%>
                <asp:Panel ID="pnlDialogSupport" runat="server" DefaultButton="btnOKSupport" Style="display: none; font-size: 0.85em">
                    <table style="width:100%">
                        <tr>
                            <td style="width:10em; text-align:right ">
                                <asp:Label ID="lblDisplaySupport" runat="server" style="margin-right:1em" Text="Display:" meta:resourcekey="lblDisplayResource1"></asp:Label>
                            </td>
                            <td>
                                <asp:RadioButtonList runat="server" ID="rblDisplay" meta:resourcekey="rblDisplayResource1" RepeatDirection="Horizontal" AutoPostBack="True">
                                    <asp:ListItem Text="Items" Selected="True" Value="Items" meta:resourcekey="liItems"></asp:ListItem>
                                    <asp:ListItem Text="Groups" Value="Groups" meta:resourcekey="liGroups"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td style="text-align:right">
                                <asp:Panel ID="pnlFilterString" runat="server" DefaultButton="btnFilterString">
                                    <asp:TextBox ID="txtFilterString" runat="server" style="background-image:url(Images/search.png); background-repeat:no-repeat; background-position:right; width:20em" AutoPostBack="false"></asp:TextBox>
                                    <asp:Button ID="btnFilterString" runat="server" Text="Apply" style="display:normal " meta:resourcekey="btnFilterStringResource1" />
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                    <div id="divTable" style="width:100%; height:440px ; overflow:scroll" runat="server">
                        <asp:Table ID="tblTable" runat="server"></asp:Table>
                    </div>
                    <%--these are ASP buttons so can change text from resource file--%>
                    <div style="display:normal; text-align:right; margin-top:10px">
                        <asp:Button ID="btnOKSupport" Text="OK" runat="server" meta:resourcekey="btnOKResource1"  />
                        <asp:Button ID="btnCancelSupport" Text="Cancel" runat="server" meta:resourcekey="btnCancelResource1"  />
                    </div>
                </asp:Panel>

                <asp:Panel ID="pnlDialogValues" DefaultButton="btnOKValues" runat="server" style="display:none">
                    <table style="width: 100%;">
                        <tr>
                            <td rowspan="4" style="border:solid; border-width:thin ; width:20em" >
                                <p><asp:label ID="lblDisplayValues" runat="server" Text="Select all observations..." meta:resourcekey="lblValues"></asp:label></p>
                                <asp:RadioButtonList runat="server" ID="rblValues" meta:resourcekey="rblValuesResource1" AutoPostBack="True">
                                    <asp:ListItem Text="equal to a value" Value="=" meta:resourcekey="liEqual" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="less than a value" Value="<" meta:resourcekey="liLessThan"></asp:ListItem>
                                    <asp:ListItem Text="greater than a value" Value=">" meta:resourcekey="liGreaterThan"></asp:ListItem>
                                    <asp:ListItem Text="in a range of values" Value="between" meta:resourcekey="liBetween"></asp:ListItem>
                                    <asp:ListItem Text="not in a range of values" Value="not between" meta:resourcekey="liNotBetween"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td style="vertical-align:bottom ">
                                <asp:label runat="server" id="lblValue" Text="Enter value:" meta:resourcekey="lblValue"></asp:label>
                                <asp:label runat="server" id="lblMin" Text="Enter minimum value (inclusive):" meta:resourcekey="lblMin"></asp:label>
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align:top"><asp:textbox id="txtValue1" runat="server" style="width:100%"/></td>
                        </tr>
                        <tr>
                            <td style="vertical-align:bottom ">
                                <asp:label runat="server" id="lblMax" Text="Enter maximum value (inclusive):" meta:resourcekey="lblMax"></asp:label>
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align:top"><asp:textbox id="txtValue2" runat="server" style="width:100%"/></td>
                        </tr>
                    </table>
                    <%--these are ASP buttons so can change text from resource file--%>
                    <div style="display:normal; text-align:right; margin-top:10px">
                        <asp:Button ID="btnOKValues" Text="OK" runat="server" meta:resourcekey="btnOKResource1" />
                        <asp:Button ID="btnCancelValues" Text="Cancel" runat="server" meta:resourcekey="btnCancelResource1" />
                    </div>
                </asp:Panel>

                <asp:Panel ID="pnlDialogDates" DefaultButton="btnOKDates" runat="server" style="display:none">
                    <table style="width: 100%;">
                        <tr>
                            <td rowspan="4" style="border:solid; border-width:thin ; width:20em" >
                                <p><asp:label ID="Label4" runat="server" Text="Select all observations at a given..." meta:resourcekey="lblDates"></asp:label></p>
                                <asp:RadioButtonList runat="server" ID="rblDates" meta:resourcekey="rblDatesResource1" AutoPostBack="True">
                                    <asp:ListItem Text="date" Selected="True" Value="date" meta:resourcekey="liDate" ></asp:ListItem>
                                    <asp:ListItem Text="month and year" Value="monthyear" meta:resourcekey="liMonthYear"></asp:ListItem>
                                    <asp:ListItem Text="month" Value="month" meta:resourcekey="liMonth"></asp:ListItem>
                                    <asp:ListItem Text="year" Value="year" meta:resourcekey="liYear"></asp:ListItem>
                                    <asp:ListItem Text="range of dates" Value="daterange" meta:resourcekey="liDateRange"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td style="vertical-align:bottom ">
                                <asp:label runat="server" id="lblDate" Text="Enter date as mm/dd/yy:" meta:resourcekey="lblDate"></asp:label>
                                <asp:label runat="server" id="lblDateMonth" Text="Enter month as mm:" meta:resourcekey="lblMonth"></asp:label>
                                <asp:label runat="server" id="lblDate1" Text="Enter first date as mm/dd/yy:" meta:resourcekey="lblDate1"></asp:label>
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align:top"><asp:textbox id="txtDate1" runat="server" style="width:100%"/><asp:CalendarExtender ID="calDate1" runat="server" TargetControlID="txtDate1" ></asp:CalendarExtender></td>
                        </tr>
                        <tr>
                            <td style="vertical-align:bottom ">
                                <asp:label runat="server" id="lblDateYear" Text="Enter year as yyyy:" meta:resourcekey="lblYear"></asp:label>
                                <asp:label runat="server" id="lblDate2" Text="Enter last date as mm/dd/yy:" meta:resourcekey="lblDate2"></asp:label>
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align:top"><asp:textbox id="txtDate2" runat="server" style="width:100%"/><asp:CalendarExtender ID="calDate2" runat="server" TargetControlID="txtDate2" ></asp:CalendarExtender></td>
                        </tr>
                    </table>
                    <%--use these to increase the height of the dialog box so calendars fit--%>
                    <br />  
                    <br />  
                    <br />  
                    <br />  
                    <br />  
                    <br />
                    <br />
                    <%--these are ASP buttons so can change text from resource file--%>
                    <div style="display:normal; text-align:right; margin-top:10px">
                        <asp:Button ID="btnOKDates" Text="OK" runat="server" meta:resourcekey="btnOKResource1" />
                        <asp:Button ID="btnCancelDates" Text="Cancel" runat="server" meta:resourcekey="btnCancelResource1" />
                    </div>
                </asp:Panel>

                <div id="divDialogProgress" title="Please stand by..." style="display:none"><div id="divProgress"></div></div>

            </ContentTemplate>
            <Triggers>
                <asp:PostBackTrigger ControlID="btnSelect" />
            </Triggers>
        </asp:UpdatePanel>
    </asp:Panel>

</asp:Content>
